//package com.qifenqian.turbot.deprecated.model
//
//import android.content.Context
//import com.qifenqian.turbot.base.BaseModel
//import com.qifenqian.turbot.deprecated.contract.ForgetPasswordContract
//import com.qifenqian.turbot.net.ModelCallback
//import com.qifenqian.turbot.net.NetObserver
//
///**
// * @author H
// * @createTime 2018/12/18 17:24
// * @description
// * @see
// * @since
// */
//@Deprecated("AccountModel")
//class ForgetPasswordModel(context: Context) : BaseModel(context), ForgetPasswordContract.Model {
//
//    override fun sendSmsCode(type: Int, callback: ModelCallback<Nothing>) {
//        mClient!!.sendSmsCode(type).subscribe(object : NetObserver<Nothing>(mContext, true) {
//            override fun onSuccess(msg: String?, t: Nothing?) {
//                callback.onSuccess(t = t)
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
//                callback.onFailure(code, msg)
//            }
//        })
//    }
//
//    override fun resetPassword(userCode: String, password: String, smsCode: String, callback: ModelCallback<*>) {
//        mClient!!.resetPassword(userCode, password, smsCode).subscribe(object : NetObserver<Nothing>(mContext, true) {
//            override fun onSuccess(msg: String?, t: Nothing?) {
//                callback.onSuccess(t = t)
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
//                callback.onFailure(code, msg)
//            }
//        })
//    }
//}
